Optimal. Leaf size=33 \[ \frac {2 \tanh ^{-1}\left (\frac {-\sqrt {b^2-4 a b^3}+2 b^2 x}{b}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 58, normalized size of antiderivative = 1.76, number of steps
used = 3, number of rules used = 2, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {630, 31}
\begin {gather*} \frac {\log \left (-\sqrt {b^2-4 a b^3}+2 b^2 x+b\right )}{b}-\frac {\log \left (\sqrt {b^2-4 a b^3}-2 b^2 x+b\right )}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 630
Rubi steps
\begin {align*} \int \frac {1}{a b+\sqrt {b^2-4 a b^3} x-b^2 x^2} \, dx &=-\left (b \int \frac {1}{\frac {1}{2} \left (-b+\sqrt {b^2-4 a b^3}\right )-b^2 x} \, dx\right )+b \int \frac {1}{\frac {1}{2} \left (b+\sqrt {b^2-4 a b^3}\right )-b^2 x} \, dx\\ &=-\frac {\log \left (b+\sqrt {b^2-4 a b^3}-2 b^2 x\right )}{b}+\frac {\log \left (b-\sqrt {b^2-4 a b^3}+2 b^2 x\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 34, normalized size = 1.03 \begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {-\sqrt {-b^2 (-1+4 a b)}+2 b^2 x}{b}\right )}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.60, size = 31, normalized size = 0.94
method | result | size |
default | \(-\frac {2 \arctanh \left (\frac {-2 b^{2} x +\sqrt {-b^{2} \left (4 a b -1\right )}}{b}\right )}{b}\) | \(31\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 55, normalized size = 1.67 \begin {gather*} -\frac {\log \left (\frac {2 \, b^{2} x - b - \sqrt {-4 \, a b^{3} + b^{2}}}{2 \, b^{2} x + b - \sqrt {-4 \, a b^{3} + b^{2}}}\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 63 vs.
\(2 (31) = 62\).
time = 1.26, size = 63, normalized size = 1.91 \begin {gather*} \frac {\log \left (\frac {2 \, b^{2} x + b - \sqrt {-4 \, a b^{3} + b^{2}}}{b}\right ) - \log \left (\frac {2 \, b^{2} x - b - \sqrt {-4 \, a b^{3} + b^{2}}}{b}\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 56 vs.
\(2 (26) = 52\).
time = 0.13, size = 56, normalized size = 1.70 \begin {gather*} - \frac {\log {\left (x - \frac {1}{2 b} - \frac {\sqrt {- 4 a b^{3} + b^{2}}}{2 b^{2}} \right )} - \log {\left (x + \frac {1}{2 b} - \frac {\sqrt {- 4 a b^{3} + b^{2}}}{2 b^{2}} \right )}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.05, size = 56, normalized size = 1.70 \begin {gather*} -\frac {\log \left (\frac {{\left | 2 \, b^{2} x - \sqrt {-4 \, a b + 1} {\left | b \right |} - {\left | b \right |} \right |}}{{\left | 2 \, b^{2} x - \sqrt {-4 \, a b + 1} {\left | b \right |} + {\left | b \right |} \right |}}\right )}{{\left | b \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.26, size = 38, normalized size = 1.15 \begin {gather*} -\frac {2\,\mathrm {atanh}\left (\frac {\sqrt {b^2-4\,a\,b^3}}{\sqrt {b^2}}-\frac {2\,b^2\,x}{\sqrt {b^2}}\right )}{\sqrt {b^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________